package com.example.family_sec;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.example.family_sec.service.MessageService;

public class MyReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.


        Intent ped = new Intent(context, MessageService.class);

        context.startService(ped);
    }
}
